package cn.wen.yinxiu.common.designpattern.config;import cn.wen.yinxiu.common.base.config.ApplicationBaseAutoConfiguration;import cn.wen.yinxiu.common.designpattern.chain.AbstractChainContext;import cn.wen.yinxiu.common.designpattern.stratey.AbstractStrategyChoose;import org.springframework.boot.autoconfigure.ImportAutoConfiguration;import org.springframework.context.annotation.Bean;/** * @ClassName: DesignPatternAutoConfiguration * @Author: 小飞 * @Date: 2023/5/24 13:17 * @Description: 设计模式自动装配 */@ImportAutoConfiguration(ApplicationBaseAutoConfiguration.class)public class DesignPatternAutoConfiguration {    /**     * 策略模式选择器     */    @Bean    public AbstractStrategyChoose abstractStrategyChoose() {        return new AbstractStrategyChoose();    }    /**     * 责任链上下文     */    @Bean    public AbstractChainContext abstractChainContext() {        return new AbstractChainContext();    }}